package cn.huoyingkeji.system.dto;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import cn.huoyingkeji.common.domain.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 角色实体
 **/
@Getter
@Setter
@Schema(description = "角色")
public class RoleDTO extends DTO {
    private static final long serialVersionUID = 1L;
    
    /** id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    /** 组织id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "组织id")
    private Long orgId;

    /** 名称 */
    @Schema(description = "名称")
    private String name;

    /** 编码 */
    @Schema(description = "编码")
    private String code;

    /** 分类 */
    @Schema(description = "分类")
    private String category;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;
}
